#! /usr/bin/env python
# -*- coding: utf-8 -*-

# *************************************************************
#     Filename @  one.py
#       Author @  Huoty
#  Create date @  2015-10-21 09:09:37
#  Description @  
# *************************************************************



# Script starts from here

def Zrange(start=0, end=10):
    print "beginning of Zrange"
    while start < end:
        print "before yield", 
        yield start
        start += 1
        print "after yield", start

    print "endding of Zrange"

zrange = Zrange(3)
print "--------------------"

print zrange.next()
print "--------------------"

print zrange.next()
print "--------------------"

print zrange.next()
print "--------------------"

print zrange.next()
print "--------------------"
